import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//引入全局CSS样式
import '@/assets/css/global.css'

//引入Element Plus
import * as ElementPlusIconsVue from '@element-plus/icons-vue' //https://element-plus.org/zh-CN/component/icon.html 24.7.5新语法

import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';

import 'dayjs/locale/zh-cn'
import locale from 'element-plus/lib/locale/lang/zh-cn'
import zhCn from "element-plus/es/locale/lang/zh-cn";

const app = createApp(App)
app.use(store).use(router).use(ElementPlus, {locale: zhCn,}).mount('#app')

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}